package com.johann.designpattern.singleton;
/*
* 饿汉
* */
public class HungryMan {
    // 构造方法
    private HungryMan(){

    }

    private static HungryMan instance = new HungryMan();
    // getter方法
    public static HungryMan getInstance() {
        return instance;
    }
}
